<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>城市运行--服务管理</title>
    <meta content="width=device-width, initial-scale=1.0" name="viewport" />

    <meta content="" name="description" />

    <meta content="" name="author" />

    <link href="component/jquery/css/jquery-ui.css" rel="stylesheet" type="text/css"/>

    <link href="component/jquery/css/jquery.ui.autocomplete.css" rel="stylesheet" type="text/css"/>

    <link href="component/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>

    <link href="component/bootstrap/css/bootstrap-datetimepicker.min.css" rel="stylesheet" type="text/css"/>

    <link href="component/bootstrap/css/bootstrap-treeview.css" rel="stylesheet" type="text/css"/>

    <link href="component/bootstrap/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>

    <link href="component/bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet" type="text/css"/>

    <link href="component/datatables/css/jquery.dataTables.min.css" rel="stylesheet" type="text/css"/>

    <link href="component/datatables/css/editor.dataTables.min.css" rel="stylesheet" type="text/css"/>

    <link href="component/datatables/css/select.dataTables.min.css" rel="stylesheet" type="text/css"/>

    <link href="component/datatables/css/buttons.dataTables.min.css" rel="stylesheet" type="text/css"/>

    <link href="component/jquery-validation/css/validationEngine.css" rel="stylesheet" type="text/css"/>

    <link href="theme/css/style-metro.css" rel="stylesheet" type="text/css"/>

    <link href="theme/css/style.css" rel="stylesheet" type="text/css"/>

    <link href="theme/css/style-responsive.css" rel="stylesheet" type="text/css"/>

    <link href="theme/css/default.css" rel="stylesheet" type="text/css" id="style_color"/>

    <link href="theme/css/uniform.default.css" rel="stylesheet" type="text/css"/>

    <link rel="stylesheet" href="theme/css/common.css" />

    <!-- <link rel="shortcut icon" href="theme/images/favicon.ico" /> -->
</head>
<body>
<script type="text/javascript">
        function setCookie(name, value, iDay)
        {
            /*var oDate=new Date();
            oDate.setTime(oDate.getTime()+iDay * 24 * 60 * 60 * 1000);
            if(iDay<=0){//不设置cookie有效时间
                document.cookie=name+'='+encodeURIComponent(value)+';expires='+0+";path=/";
            }else{//设置cookie的有效时间
                document.cookie=name+'='+encodeURIComponent(value)+';expires='+oDate+";path=/";
            }*/
            var oDate = new Date();
            var cookieTime = oDate.getTime();
            if (iDay < 1||iDay>=0) {
                cookieTime += 30 * 60 * 1000;
            }else if(iDay>=1){
                cookieTime += iDay * 24 * 60 * 60 * 1000;
            }
            oDate.setTime(cookieTime);
            document.cookie = name + '=' + encodeURIComponent(value) + ';expires=' + oDate + ";path=/";
        }
        
        function GetQueryString(name)
        {
            var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
            var r = window.location.search.substr(1).match(reg);
            if(r!=null)return  unescape(r[2]); return null;
        }
        debugger;
        var hexToDec = function(str) {
            str = str.replace(/\\/g, "%");
            return unescape(str);
        };
        var tokenId64=GetQueryString("tokenId");
        var checkCode=GetQueryString("checkCode");
        if(tokenId64&&checkCode){
            var days = checkCode=="true"?20:0;
            setCookie("tokenId",hexToDec(tokenId64),days);
            window.location.href = window.location.href.split("?")[0];
        }
</script>
<div class="header navbar navbar-inverse navbar-fixed-top">

    <!-- BEGIN TOP NAVIGATION BAR -->
<div class="container-fluid">

    <a class="brand"><img src="theme/images/icon/logo.png"></a>

    <div class="fl current-user"><span>欢迎&nbsp;&nbsp;<img src="theme/images/icon/current-user.png" style="margin-right: 4px;"></span><a href="javascript:;"></a></div>

    <div class="navbar hor-menu hidden-phone hidden-tablet">

    <div class="navbar-inner dropdown">

        <ul class="nav navbar-nav">
        </ul>

    </div>

    </div>
    </div>

</div>

<div class="page-container row-fluid">
    <input type="hidden" id="digitalChinaCurrentUrl">
    <!-- BEGIN SIDEBAR -->

    <div class="page-sidebar nav-collapse hide">

        <!-- BEGIN SIDEBAR MENU -->

        <ul class="page-sidebar-menu">
            <li class="active" index="1"><a type="button" id="1" onclick="loadServicePageByPopMenu(1,1);"  data-trigger="manual" data-toggle="popover" data-placement="right" data-container="#tab-content-body"><img src="theme/images/icon/left-menu-1.png"/><span class="title">内部服务</span></a></li>
            <li index="2"><a id="2" onclick="loadServicePageByPopMenu(2,2);" data-toggle="popover" data-trigger="manual" data-placement="right" data-container="#tab-content-body"><img src="theme/images/icon/left-menu-2.png"/><span class="title">外部服务</span></a></li>
            <li index="3"><a id="3" onclick="loadServicePageByPopMenu(3,3);" data-toggle="popover" data-trigger="manual" data-placement="right" data-container="#tab-content-body"><img src="theme/images/icon/left-menu-3.png"/><span class="title">GIS服务</span></a></li>
        </ul>

        <!-- END SIDEBAR MENU -->

    </div>

    <div class="page-content" style="margin-left:0 !important;">

        <div class="secondary_menu hide">

        </div>

        <!-- Tab panes -->
        <div class="tab-content" id="tab-content-body">

            <!-- <div role="tabpanel" class="tab-pane active" id="tab_0">主页</div> -->

        </div>

    </div>

</div>

<div class="footer">

    <div class="footer-inner">

        神州数码

    </div>

</div>

<div class="modal fade common-modal" id="loadingModal" tabindex="-1" role="dialog" aria-hidden="true" data-backdrop="static" style="text-align: center;">
    <img src="theme/images/icon/loading.gif" style="position: absolute;top: 40%;">
</div>


<script src="component/jquery/jquery-1.11.0.min.js" type="text/javascript"></script>

<script src="component/jquery/jquery-migrate-1.2.1.min.js" type="text/javascript"></script>

<script src="component/jquery/jquery-ui-1.10.0.custom.min.js" type="text/javascript"></script>

<script src="component/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>

<script src="component/bootstrap/js/bootstrap-datetimepicker.js" type="text/javascript"></script>

<script src="component/bootstrap/js/bootstrap-datetimepicker.zh-CN.js" type="text/javascript"></script>

<script src="component/bootstrap/js/moment.js" type="text/javascript"></script>

<script src="component/bootstrap/js/bootstrap-treeview.js" type="text/javascript"></script>

<script src="component/jquery/jquery.uniform.min.js" type="text/javascript" ></script>

<script type="text/javascript" src="component/datatables/js/jquery.dataTables.min.js"></script>

<script type="text/javascript" src="component/datatables/js/dataTables.editor.min.js"></script>

<script type="text/javascript" src="component/datatables/js/dataTables.buttons.min.js"></script>

<script type="text/javascript" src="component/datatables/js/dataTables.select.js"></script>

<script src="component/jquery-validation/js/jquery.validationEngine.js" type="text/javascript" ></script>

<script src="component/jquery-validation/js/jquery.validationEngine-zh_CN.js" type="text/javascript" ></script>

<script src="theme/js/layer/layer.js"></script>

<script src="theme/js/common.js"></script>

<script src="component/compatibility/respond.js" type="text/javascript"></script>

<script src="theme/js/app.js"></script>

<script src="theme/js/template.js"></script>

<!--<script src="theme/js/bootstrap-addtabs.js"></script>-->

<script src="theme/js/dataStructure.js"></script>

<script src="theme/js/table.js"></script>

<script src="theme/js/objClass.js"></script>
<!-- hchart.js-->
<script src="component/chartBase/highcharts.js"></script>
<script src="component/chartBase/highcharts-3d.js"></script>
<script src="component/chartBase/highcharts-more.js"></script>
<script src="component/chartBase/chart.js"></script>

<!-- GIS JS 服务器 -->
<script src="http://js.arcgis.com/3.17/arcgis_api/init.js"></script>
<link rel="stylesheet" href="http://js.arcgis.com/3.17/arcgis_api/esri/css/esri.css">
<script>

    jQuery(document).ready(function() {debugger;

        //如果没有ssl验证就跳转验证页面
        /* var ssl= getURLString("ssl");
        var tokeIdStr=getURLString("tokenId");
        if(!ssl && !tokeIdStr){
            window.location.href = authRootPath+"/login/v1/ssl.json?jumpUrl="+path;
            return;
        } */

        $(document).off('click.bs.dropdown.data-api');

        App.init();

        Template.init();

        $('.page-sidebar-menu').find('a').on('click',function(){
            $("#tab-content-body").load($(this).attr('href'));
        });

    });

    var getURLString =function(name){
        var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
        var r = window.location.search.substr(1).match(reg);
        if (r != null)return decodeURI(r[2]);
        return null;
    }

	var getQueryString =function(name) {
	    var url=$("#digitalChinaCurrentUrl").val();
	    if(url =="" || url.indexOf("?")< 0){
	    	return "";
	    }
	    var url = url.substr(url.indexOf("?"));    
	    var theRequest = new Object();
	    if (url.indexOf("?") != -1) {
	        var str = url.substr(1);
	        strs = str.split("&");
	        for(var i = 0; i < strs.length; i ++) {
	            theRequest[strs[i].split("=")[0]] = unescape(strs[i].split("=")[1]);
	        }
	    }
	    return theRequest[name];
	};
	
	/* var loadServicePageByPopMenu=function(id,type){
		var  pageContentUrl="./pages/serviceManage/inner/list.html?parentId="+id;
		switch (type) {
		case 2:
			pageContentUrl="./pages/serviceManage/outer/list.html?parentId="+id;
			break;
		case 3:
			pageContentUrl="./pages/serviceManage/gis/list.html?parentId="+id;
			break;
		default:
			break;
		}

	    //导航添加
	    var navContent = $('#'+id).text();
	    var parentMenu = $('#'+$('#'+id).attr('parentId'));
	    if(parentMenu.length != 0){
	        navContent = '<a href="javascript:;">'+parentMenu.text()+'</a>&nbsp;<span class="arrow">></span>&nbsp;<span>'+navContent+'</span>';
	        var grandparentMenu = $('#'+parentMenu.attr('parentId'));
	        if(grandparentMenu.length != 0){
	            navContent = '<a href="javascript:;">'+grandparentMenu.text()+'</a>&nbsp;<span class="arrow">></span>&nbsp;'+navContent;
	        }
	    }


	    $("#digitalChinaCurrentUrl").val(pageContentUrl);
	    $("#tab-content-body").load(pageContentUrl,function(){
	        $('.nav-menu-title').html(navContent);
	    });
	 } */

</script>

</body>
</html>